<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>{:C('SERVER_NAME')}</title>
	<link rel="stylesheet" type="text/css" href="__PUBLICADMIN__/css/style.css">
</head>
<body>
	<div class="content p50">
		<form action="__ACTION__.html">
		<div class="content-title">
		<h2>代写套餐列表</h2>
			<div class="content-right">
				<span class="search-title">套餐名称：</span><span class="search fl"><input type="text" name="sectitle" value="{$_GET['sectitle']}" placeholder="请输入"></span>		
				<input type="submit" class="search-btn fl" value="">
			</div>
		</div>
		</form>	
		<div class="p80">
			<table class="table">
				<thead>
					<tr>
						<th>序号</th>
						<th>套餐名称</th>
						<th>套餐价格</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
				<volist id="vo" name="comList">
					<tr>
						<td>{$key+1}</td>
						<td>{$vo.title}</td>
						<td>{$vo.money}</td>
						<td><a href="javascript:;" class="del_package" data-id="{$vo.id}">删除</a>|<a href="{:U('Write/editPackage',array('id'=>$vo['id']))}">修改</a></td>
					</tr>
				</volist>
				</tbody>
			</table>
			<div class="add-box">
				<a href="{:U('Write/editPackage')}" class="add">新增</a>
			</div>
			<div class="page">
				{$page}
			</div>
		</div>	

	<include file="Public/ok"/>
	<include file="Public/okcancel"/>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-1.7.min.js"></script>
	<script type="text/javascript" src="__PUBLICADMIN__/js/page.js"></script>
	<script type="text/javascript">
		//删除
		$(".del_package").click(function(){

			var _this=$(this);

			modelConfirm("确定要删除吗",function(){

				var ids=_this.attr("data-id");
				if(!ids){
					prompting("删除失败，请刷新后重试");
					return false;
				}
				$.post("__URL__/ajaxDelPackage",{"ids":ids},function(data){
					
					prompting(data.info);
					_this.parent().parent().remove();	
				});
			});
		});

	</script>
</body>
</html>